package com.lobo.blog.service;

import com.github.pagehelper.PageInfo;
import com.lobo.blog.entity.Type;
import com.lobo.blog.exception.AllReadyBeenDeletedException;
import com.lobo.blog.exception.TypeNotFoundException;

import java.util.List;

/**
 * @authoer:MacieSerenity
 * @createDate: 2022/9/29
 * @description:
 */
public interface AdminTypeService {
    int saveType(Type type);

    Type getTypeByTypeId(Integer typeId) throws TypeNotFoundException;

    List<Type> getAllType();

    PageInfo<Type> getTypes(Integer pageNum);

    int updateType(Type type);

    int deleteTypeById(Integer id) throws AllReadyBeenDeletedException;

}
